package com.xqls.dal.dao;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.xqls.dal.model.FlowMeter;
import com.xqls.dal.model.FlowMeterExample;

public interface FlowMeterDao {
	
	public List<Map<String, Object>> getAllmap(Map<String, Object> map);//根据map查询，map查询条件
	
	public List<FlowMeter> selectByExample(FlowMeterExample example);//根据条件查询,example 查询条件
	
	public  boolean addFlow(FlowMeter flowMeter);//增加
	
	public boolean deleteList(List<Integer> keys);//批量删除
	
	public  boolean deleteFlow(FlowMeter flowMeter);//删除
	
	public FlowMeter selectByKey(Integer key);//根据主键查询
	
	public FlowMeter selectByClose(String close,String deviceNo);//根据结算时间和设备标号查询
	
	public List<FlowMeter> selectBySmonth(Date close,String deviceNo);//根据结算时间和设备标号查询上个月的数据
	
	public boolean Update(FlowMeter flowMeter);//修改
	
	public List<FlowMeter> queryByExample(FlowMeterExample example);
	
	public List<Map<String, Object>> selectBySmonth(Map<String, Object> map);
	
	public List<Map<String, Object>> selectflowcost(Integer companyId,String closeMonth);// 费用生成
	
	List<Map<String , Object>> getListByMap(Map<String, Object> map);
	
	public FlowMeter selectByTime(String close,String deviceNo);//根据结算时间和设备标号查询
	
}
